# -*- coding : utf_8 -*-
"""
=======================================
Time : 2025/4/27 21:23
Author : 田霄汉
Email : 522989570@qq.com
File : varify_pwd.py
Project : pytest_demo
=======================================
"""

class VarifyPWD:

    def pwd(self, func):
        def varify_pwd(*args, **kwargs):
            while 1:
                password = input('请输入密码：')
                if password != '123':
                    print('密码错误，请重新输入！')
                else:
                    func(*args, **kwargs)
                    break
        return varify_pwd
